All Functions of Week 10

ylab

{GGPLOT2}

Label the y axis (ggplot)

c

{base}

Combine values/vectors into a vector

is.element

{base}

Check if a value is element of a vector

rm

{base}

Remove objects

geom_point

{GGPLOT2}

Generates a scatter plot

library

{base}

Load an R package

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

as.numeric

{base}

Coerce a vector to numeric

confint

{stats}

Calculate confidence Intervals for Model Parameters

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

ifelse

{base}

Return a or b depending on the value of test

lm

{base}

Fit a linear model

geom_smooth

{GGPLOT2}

Generates a smoothed conditional means curve / line

subset

{base}

Return subsets of vectors, matrices or data frames which meet conditions.

recode

{dplyr}

Recode a variable

str

{utils}

Get the structure of an R object

mutate

{dplyr}

Modify/create a column in a data frame

droplevels

{base}

Drop Unused Levels from Factors

setwd

{base}

Set Working Directory

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

ggplot

{GGPLOT2}

Create a ggplot graph

with

{base}

evaluate expression in the context of a data frame

log

{base}

log (default base = e)

relevel

{stats}

Reorder Levels of Factor

contrasts

{stats}

Get and Set Contrast Matrices (find reference category)

summary

{base}

Obtain summary statistics or detailed regression output

xlab

{GGPLOT2}

Label the x axis (ggplot)

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

prop.table

{base}

Transform frequency table into table of proportions

levels

{base}

Get levels of a factor

The end!